package com;

import com.Enum.LoggerEnum;

public class LoggerTest {
    public static void main(String[] args) {
        LoggerChain loggerChain = new LoggerChain();

        // 模拟不同日志级别的请求
        System.out.println("日志级别: INFO");
        loggerChain.log(LoggerEnum.INFO, "这是 info 信息.");

        System.out.println("\n日志级别: DEBUG");
        loggerChain.log(LoggerEnum.DEBUG, "这是 debug 信息.");

        System.out.println("\n日志级别: ERROR");
        loggerChain.log(LoggerEnum.ERROR, "这是 error 信息.");

        System.out.println("\n日志级别: WARNING");
        loggerChain.log(LoggerEnum.WARNING, "这是 warning 信息.");
    }
}
